<?xml version='1.0' encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="cpip.css" rel="stylesheet" type="text/css" />
    <title>File: /Users/paulross/dev/linux/linux-3.13/include/uapi/linux/const.h</title>
  </head>
  <body>
    <h1>File: /Users/paulross/dev/linux/linux-3.13/include/uapi/linux/const.h</h1>
    <p>Green shading in the line number column
means the source is part of the translation unit, red means it is conditionally excluded.
Highlighted line numbers link to the translation unit page. Highlighted macros link to
the macro page.</p>
    <pre><a name="1" /><span class="True">       1:</span> <span class="k">/* const.h: Macros for dealing with constants.  */</span>
<a name="2" /><span class="True">       2:</span> 
<a name="3" /><span class="Maybe">       3:</span> <span class="f">#</span><span class="n">ifndef</span> <a href="cpu.c_macros_ref.html#_X0xJTlVYX0NPTlNUX0hfMA__"><span class="b">_LINUX_CONST_H</span></a>
<a name="4" /><span class="Maybe">       4:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0xJTlVYX0NPTlNUX0hfMA__"><span class="b">_LINUX_CONST_H</span></a>
<a name="5" /><span class="Maybe">       5:</span> 
<a name="6" /><span class="Maybe">       6:</span> <span class="k">/* Some constant macros are used in both assembler and</span>
<a name="7" /><span class="Maybe">       7:</span> <span class="k"> * C code.  Therefore we cannot annotate them always with</span>
<a name="8" /><span class="Maybe">       8:</span> <span class="k"> * &apos;UL&apos; and other type specifiers unilaterally.  We</span>
<a name="9" /><span class="Maybe">       9:</span> <span class="k"> * use the following macros to deal with this.</span>
<a name="10" /><span class="Maybe">      10:</span> <span class="k"> *</span>
<a name="11" /><span class="Maybe">      11:</span> <span class="k"> * Similarly, _AT() will cast an expression with a type in C, but</span>
<a name="12" /><span class="Maybe">      12:</span> <span class="k"> * leave it unchanged in asm.</span>
<a name="13" /><span class="Maybe">      13:</span> <span class="k"> */</span>
<a name="14" /><span class="Maybe">      14:</span> 
<a name="15" /><span class="False">      15:</span> <span class="f">#</span><span class="n">ifdef</span> <span class="b">__ASSEMBLY__</span>
<a name="16" /><span class="False">      16:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0FDXzA_"><span class="b">_AC</span></a><span class="f">(</span><span class="b">X</span><span class="f">,</span><span class="b">Y</span><span class="f">)</span>    <span class="b">X</span>
<a name="17" /><span class="False">      17:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0FUXzA_"><span class="b">_AT</span></a><span class="f">(</span><span class="b">T</span><span class="f">,</span><span class="b">X</span><span class="f">)</span>    <span class="b">X</span>
<a name="18" /><span class="Maybe">      18:</span> <span class="f">#</span><span class="n">else</span>
<a name="19" /><span class="Maybe">      19:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X19BQ18w"><span class="b">__AC</span></a><span class="f">(</span><span class="b">X</span><span class="f">,</span><span class="b">Y</span><span class="f">)</span>    <span class="f">(</span><span class="b">X</span><span class="f">##</span><span class="b">Y</span><span class="f">)</span>
<a name="20" /><span class="Maybe">      20:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0FDXzA_"><span class="b">_AC</span></a><span class="f">(</span><span class="b">X</span><span class="f">,</span><span class="b">Y</span><span class="f">)</span>    <a href="cpu.c_macros_ref.html#_X19BQ18w"><span class="b">__AC</span></a><span class="f">(</span><span class="b">X</span><span class="f">,</span><span class="b">Y</span><span class="f">)</span>
<a name="21" /><span class="Maybe">      21:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0FUXzA_"><span class="b">_AT</span></a><span class="f">(</span><span class="b">T</span><span class="f">,</span><span class="b">X</span><span class="f">)</span>    <span class="f">(</span><span class="f">(</span><span class="b">T</span><span class="f">)</span><span class="f">(</span><span class="b">X</span><span class="f">)</span><span class="f">)</span>
<a name="22" /><span class="Maybe">      22:</span> <span class="f">#</span><span class="n">endif</span>
<a name="23" /><span class="Maybe">      23:</span> 
<a name="24" /><span class="Maybe">      24:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_ref.html#_X0JJVFVMXzA_"><span class="b">_BITUL</span></a><span class="f">(</span><span class="b">x</span><span class="f">)</span>    <span class="f">(</span><a href="cpu.c_macros_ref.html#_X0FDXzA_"><span class="b">_AC</span></a><span class="f">(</span><span class="c">1</span><span class="f">,</span><span class="b">UL</span><span class="f">)</span> <span class="f">&lt;&lt;</span> <span class="f">(</span><span class="b">x</span><span class="f">)</span><span class="f">)</span>
<a name="25" /><span class="Maybe">      25:</span> <span class="f">#</span><span class="n">define</span> <a href="cpu.c_macros_noref.html#_X0JJVFVMTF8w"><span class="b">_BITULL</span></a><span class="f">(</span><span class="b">x</span><span class="f">)</span>    <span class="f">(</span><a href="cpu.c_macros_ref.html#_X0FDXzA_"><span class="b">_AC</span></a><span class="f">(</span><span class="c">1</span><span class="f">,</span><span class="b">ULL</span><span class="f">)</span> <span class="f">&lt;&lt;</span> <span class="f">(</span><span class="b">x</span><span class="f">)</span><span class="f">)</span>
<a name="26" /><span class="Maybe">      26:</span> 
<a name="27" /><span class="True">      27:</span> <span class="f">#</span><span class="n">endif</span> <span class="k">/* !(_LINUX_CONST_H) */</span>
<a name="28" /><span class="True">      28:</span> </pre>
  </body>
</html>
